// 获取输入参数
import {api} from "./api";

const args = process.argv.slice(2);
if (args.length == 0) {
    console.log("没有传入appid");
    process.exit(2);
}
const appids = args[0].split(',');
let desc = '';
if (args.length == 2) {
    desc = args[1]
}
console.log(appids, desc);

(async () => {
    for (const appid of appids) {
        await api.submitAudit(appid, desc)
    }
})();
